function getCode(el) {
  const url = location.href
  const codeStrLong = url.substr(url.indexOf('code='))
  const codeStr = codeStrLong.split('&')[0]
  el.code = codeStr.split('=')[1]
}
export default getCode
